package com.hedl.elasticsearch.exception;

/**
 * @author Big Watermelon
 * @description
 * @date 2023/11/15/12:46
 */
public class DiyException extends RuntimeException{
    private String errMessage;

    public DiyException() {
        super();
    }

    public DiyException(String errMessage) {
        super(errMessage);
        this.errMessage = errMessage;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }

    public static void cast(String message){
        throw new DiyException(message);
    }
}
